/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *  SRVState.m - iPhoneSRV console for Surveyor SRV-1 and SVS 
 *
 *  Created by Nick Kitchener.  Copyright (C) 2009  Surveyor Corporation 
 *            and Nick Kitchener.  All rights reserved.
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details (www.gnu.org/licenses)
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#import "SRVState.h"

@implementation SRVState
@synthesize stateSwitcher;

-(id)initWithStateSwitcher:(id<SRVStateSwitcher>) stateSwitcherParam {
	stateSwitcher = stateSwitcherParam;
	return self;
}

-(void)setState:(SRVState*)newState {
	[stateSwitcher setState:newState];
}

-(void) stateInitialise {
	NSLog(@"SRVState stateInitialise");
}

// override these defaults.

- (void) initialisationComplete:(id)sender {
	NSLog(@"Unhandled event.");
}

- (void) connectComplete:(id)sender {
	NSLog(@"Unhandled event.");
}

- (void) connectionError:(id)sender {
	NSLog(@"Unhandled event.");
}

- (void) disconnectComplete:(id)sender {
	NSLog(@"Unhandled event.");
}

- (void) connectToURL:(NSString*)ipAddress port:(NSUInteger)port {
	NSLog(@"Unhandled event.");
}

- (void) disconnect {
	NSLog(@"Unhandled event.");
}

- (void) setOperation:(SRVOperation *)operation {
	NSLog(@"Unhandled event.");
}

- (void) handleChildMessage:(SRVInterthreadMessage *)msg {
	NSLog(@"Unhandled event.");
}

@end
